/*
 * Main.java
 * @author Andrey Tesler
 * Created for DiffView project
 * Created on 4 October 2009, 13:52
 */

package diffview;

import java.util.*;
import java.io.*;
import static java.lang.Math.*;
import static java.lang.System.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;

public class Main {
    
    public static Model createModel(String oldFileName, String newFileName) 
                                throws IOException {
        String oldText = new FileReader(oldFileName).read();
        String newText = new FileReader(newFileName).read();
        return new Algorithm().createModel(oldText, newText);
    }
    
    public static void main(String[] args) throws IOException  {
        new diffview.gui.Frame().setVisible(true);
//        Model model = createModel
//                ("C:\\test\\diffview\\1b.txt", "C:\\test\\diffview\\1c.txt");
//        Model model = new Algorithm().createModel("1\n2\n3", "2\n3\n4\n5");
        //out.println(model.getOldLines() + "\n\n\n" + model.getNewLines());
    }
    
}
